package com.sinotrans.auth.service;

import org.springframework.security.core.userdetails.UsernameNotFoundException;

import com.sinotrans.common.security.AuthEntity;

public interface SecurityService {

	/**
	 * 密码加密
	 * 
	 * @param password 密码明文
	 * @return 加密后密码
	 * @throws Exception
	 */
	public String encryptPassword(String password) throws UsernameNotFoundException;

	/**
	 * 登录
	 * 
	 * @param username
	 * @param password
	 * @return
	 */
	public AuthEntity login(String username, String password) throws UsernameNotFoundException;

}
